/**
 * 查询角色列表--租户角色
 */
export const userLoadSystemRoleApi = (body)=>{
    return useHttpPost("/role/system/list",{body})
}


/**
 * 查询角色列表--系统角色
 */
export const userLoadRoleApi = (body)=>{
    return useHttpPost("/role/list",{body})
}

/**
 * 保存后台角色
 */
export const useSaveRoleDataApi = (body)=>{
    return useHttpPost("/role/save",{body})
}


/**
 * 修改后台角色
 */
export const useUpdateRoleDataApi = (body)=>{
    return useHttpPost("/role/update",{body})
}

/**
 * 根据ID查询后台角色
 */
export const useGetRoleDataApi = (id)=>{
    return useHttpPost("/role/get/"+id,{})
}

/**
 * 删除角色
 */
export const useDelRoleDataApi = (id)=>{
    return useHttpPost("/role/del/"+id,{})
}

/**
 * 根据字段修改状态
 */
export const useUpdateStatusRoleDataApi = (body)=>{
    return useHttpPost("/role/update/status",{body})
}

/**
 * 批量通过
 * @param sysRoleBatchRequest
 * @return
 */
export const useBatchUpdateStatusRoleDataApi = (body)=>{
    return useHttpPost("/role/batch/statuss",{body})
}

/**
 * 批量禁止
 */
export const useBatchUpdateForbiddensRoleDataApi = (body)=>{
    return useHttpPost("/role/batch/forbiddens",{body})
}


/**
 * 根据角色ID查询对应的角色菜单
 */
export const useRoleMenusApi = (roleId)=>{
    return useHttpPost("/role/menus?roleId="+roleId,{})
}

/**
 * 根据角色ID查询对应的角色权限信息
 */
export const useRoleApisApi = (roleId)=>{
    return useHttpPost("/role/apis?roleId="+roleId,{})
}
/**
 * 根据角色ID查询对应的角色菜单和权限信息
 */
export const useHandleChangeRoleApi = (roleId)=>{
    return useHttpPost("/role/change?roleId="+roleId,{})
}


/**
 * 绑定角色
 */
export const useHandleBindRoleApi = (body)=>{
    return useHttpPost("/role/bind",{body})
}


/**
 * 取消绑定角色
 */
export const useHandleCancleRoleApi = (body)=>{
    return useHttpPost("/role/cancle",{body})
}



/**
 * 角色绑定菜单
 */
export const useBindMenusRoleDataApi = (body)=>{
    return useHttpPost("/role/bind/menus",{body})
}

/**
 * 角色绑定权限
 */
export const useBindApisRoleDataApi = (body)=>{
    return useHttpPost("/role/bind/apis",{body})
}